# Copyright (C) Kumo inc. and its affiliates.
# Author: Jeff.li lijippy@163.com
# All rights reserved.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https:#www.gnu.org/licenses/>.
#

kmcmake_cc_test(
        NAME simple_lru_cache_test
        MODULE common
        SOURCES
        simple_lru_cache_test.cpp
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        -fno-access-control
        LINKS
        pollux::pollux_static
        pollux::pollux_testing_static
        GTest::gtest
        GTest::gmock
        GTest::gtest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME cache_test
        MODULE common
        SOURCES
        async-data_cache_test.cpp
        cache_ttl_controller_test.cpp
        ssd_file_test.cpp
        ssd_file_tracker_test.cpp
        string_id_map_test.cpp
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        -fno-access-control
        LINKS
        pollux::pollux_static
        pollux::pollux_testing_static
        GTest::gtest
        GTest::gmock
        GTest::gtest_main
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME cached_factory_test
        MODULE common
        SOURCES
        cached_factory_test.cpp
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        -fno-access-control
        LINKS
        pollux::pollux_static
        pollux::pollux_testing_static
        GTest::gtest
        GTest::gmock
        GTest::gtest_main
        ${KMCMAKE_DEPS_LINK}
)

